//
//  YSService.h
//  YouSheng
//
//  Created by aaa on 16/8/17.
//  Copyright © 2016年 FanShuHan. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol YSService <NSObject>
@optional
- (void)onCleanData;
- (void)onReceiveMemoryWarning;
- (void)onEnterBackground;
- (void)onEnterForeground;
- (void)onAppWillTerminate;
@end
//------------------------------**********************-------------------//

@interface YSService : NSObject<YSService>
+ (instancetype)sharedInstance;
@end

//------------------------------**********************-------------------//
@interface YSServiceManager: NSObject

+ (instancetype)sharedManager;

- (void)start;
- (void)destory;
@end
